cmake_minimum_required(VERSION 3.17)
project(game)

set(CMAKE_CXX_STANDARD 14)

#set( ecore_src "src/ECore/src/ECore.cpp src/ECore/src/EFrustum.cpp src/ECore/src/EGraphics.cpp" )
#set( eengine_src )
#set( egame_src )

#aux_source_directory( "src/ECore/src" core_src )
#aux_source_directory( "src/EEngine/src" engine_src )
aux_source_directory( "src" game_src )

message( "${core_src} ${engine_src} ${game_src}" )

add_library(game ${core_src} ${engine_src} ${game_src})

#配置为debug

target_include_directories(game PUBLIC
        ${gdi_include}
        "${core_include}"
        "${engine_include}"
        "${game_include}"
        ${SDL_INCLUDE_LOCATION}
        )

target_link_directories( game PUBLIC
        ${SDL_LIB_LOCATION}
        )

target_link_libraries( game
        ${SDL_LIB}
        )
